package hikari.hcomponents.physics;

import com.gooddies.wiring.Wiring;
import hikari.gui.panels.bullet.BulletConvexHullRigidBodyPanel;
import hikari.gui.panels.bullet.IBulletRigidBodyEditPanel;
import hikari.persistence.file.FileSection;
import java.io.IOException;
import org.swig.jirr.ISceneNode;

/**
 * @author sad
 */
public class ConvexHullRigidBody extends IRigidBody {

    protected PhysicsData data;

    public ConvexHullRigidBody(ISceneNode node, PhysicsData data) {
        this.data = data;
    }

    @Override
    public IBulletRigidBodyEditPanel getEditPanel() {
        BulletConvexHullRigidBodyPanel editPanel = Wiring.getComponent(BulletConvexHullRigidBodyPanel.class);
        editPanel.init(data);
        return editPanel;
    }

    @Override
    public void write(FileSection section) throws IOException {
        FileSection sect = section.createNewSection("convexHullRigid");
        sect.close();
    }

    @Override
    public void read(FileSection section) throws IOException {
    }
}
